<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="{{url_for('bpRoot.view')}}"><strong>珠宝进销存管理系统</strong></a>
        </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li{{(' class="active"' if getActiveTab()==TAB_HOME else '')|safe}}><a href="{{url_for('bpRoot.view')}}">{{ getShopPro().shop }}</a></li>
                    <li{{(' class="active"' if getActiveTab()==TAB_BASIC else '')|safe}}><a href="{{url_for('bpMas.view')}}">基础信息</a></li>
                    <li{{(' class="active"' if getActiveTab()==TAB_REPORT else '')|safe}}><a href="{{url_for('bpRpt.view')}}">报表</a></li>
                    {% if getAnyPermission(['USER_VIEW','GROUP_VIEW'])%}
                    <li{{(' class="active"' if getActiveTab()==TAB_SETTING else '')|safe}}><a href="{{url_for('bpSys.view')}}">系统设置</a></li>
                    {% endif %}
                    
                    {% if getAllPermission(['SHOP_VIEW_ALL',]) %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" onclick="showShopList()">更多店铺 <b class="caret"></b></a>
                            <ul class="dropdown-menu" id="shoplist">
                                
                            </ul>
                        </li>
                    {% endif %}
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><a class="" href="#"><span class="glyphicon glyphicon-user glyphicon glyphicon-white"></span>&nbsp;{{session['user_profile']['name']}}</a></li>
                     <li class="dropdown">
                         <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
                         <ul class="dropdown-menu">
                            <li><a href="{{url_for('bpAuth.changePro')}}"><i class="glyphicon glyphicon-pencil"></i>&nbsp;我的信息</a></li>
                            <li><a href="{{url_for('bpAuth.changePW')}}"><i class="glyphicon glyphicon-lock"></i>&nbsp;修改密码</a></li>
                            <li class="divider"></li>
                            <li><a href="{{url_for('bpAuth.logout')}}"><i class="glyphicon glyphicon-off"></i>&nbsp;退出</a></li>
                        </ul>
                     </li>
                </ul>
            </div>
            <!--/.navbar-collapse -->
    </div>
</div>